//
//  Movies.m
//  DouBan
//
//  Created by lanou3g on 15/8/8.
//  Copyright (c) 2015年 xuzheng. All rights reserved.
//

#import "Movies.h"

@implementation Movies
//- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
//    
//}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
}
- (void)loadImage{
    
    self.isLoading=YES;
    NSURL *url=[NSURL URLWithString:self.pic_url];
    NSMutableURLRequest *request=[[NSMutableURLRequest alloc]initWithURL:url];
    [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
        UIImage *temp=[UIImage imageWithData:data];
        self.myImage=temp;
        self.isLoading=NO;
    }];
  
}

@end
